#include <iostream>
using namespace std;

int numWays(int n)
{
    if (n == 0)
	return 1;
    long long record[n + 1];
    record[0] = 1;
    record[1] = 1;
    for (int i = 2; i < n + 1; ++i) {
	record[i] = (record[i - 1] + record[i - 2]) % 1000000007;
    }
    return record[n];
}

int main(int argc, char* argv[])
{
    cout << numWays(2) << endl;
    return 0;
}
